package com.wind.cloud.common.config.transaction;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.transaction.interceptor.TransactionAttributeSource;

/**
 * 事务拦截
 *
 * @author wind.
 */
@Configuration
@EnableTransactionManagement
public class TransactionalConfig {

    @Bean
    public TransactionAttributeSource transactionAttributeSource() {
        return new TransactionServiceAttributeSource();
    }


}
